package com.yuanyefu.aop;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * Created by Administrator on 2017/9/17 0017.
 */
public class LoginMethodBeforeAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("[LoginMethodBeforeAdvice] User "+args[0]+" try to login...");
    }
}
